import App from './App'
import store from './store'

// #ifndef VUE3
import Vue from 'vue'

// uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 引入请求封装
require('./util/request/index')(app)
Vue.config.productionTip = false
 
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
// 导入并挂载全局的分享方法
import share from '@/common/share.js'
Vue.mixin(
	{computed: {
    appId: () => store.state.appId,
    enterpriseId: () => store.state.enterpriseId,
  }},
	share
)
